Skip to content

Implement OptimizationBarrier and SchedulingBarrier for the XLA backend#36

Merged
janpfeifer merged 7 commits into
mainfrom
add-barrier-ops
Jun 21, 2026
Merged

Implement OptimizationBarrier and SchedulingBarrier for the XLA backend#36
janpfeifer merged 7 commits into
mainfrom
add-barrier-ops

Conversation

@janpfeifer

@janpfeifer janpfeifer commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

This PR implements the OptimizationBarrier and SchedulingBarrier interfaces on the OpenXLA/PJRT backend:

  • OptimizationBarrier connects to PJRT's optimization barrier functionality (wrapped to bypass CPU backend implementation directly due to CPU-specific PJRT issues).
  • SchedulingBarrier is implemented using an "add zero" dependency hack (similar to dotGeneralAddDependency), ensuring dependency execution order in StableHLO.
  • Leverages the new dependency-chaining hack for dot-general operations.

See discussion in gomlx/gomlx#422

@janpfeifer
janpfeifer merged commit ecb8c18 into main Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant